package com.example.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.product.entity.Product;

public interface ProductService extends IService<Product> {
    /**
     * 扣减库存
     * @param productId 商品ID
     * @param quantity 扣减数量
     * @return 是否成功
     */
    boolean decreaseStock(Long productId, Integer quantity);
} 